package com.mes.service.jy;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.jy.AllwMepper;
import com.mes.entity.hy.PeopleManage;
import com.mes.entity.hy.Work;

/**
 * @ClassName: AllwServiseImpl 
 * @Description:作业信息
 * @Author jy
 * @Date 2018年3月28日 下午3:53:58 
 * @version 1.0
 */
@Service
@Transactional
public class AllwServiseImpl implements AllwServise{

	@Resource 
	private AllwMepper allwMepper;
	
	@Override
	public int createWork(Work work) {
		return allwMepper.createWork(work);
	}

	@Override
	public int createPeopleManage(PeopleManage peopleManage) {
		return allwMepper.createPeopleManage(peopleManage);
	}

	@Override
	public Work selectByDid(String did) {
		return allwMepper.selectByDid(did);
	}

	@Override
	public int editAllw(Work work) {
		return allwMepper.editAllw(work);
	}

	@Override
	public int editPeopleManage(PeopleManage peopleManage3) {
		return allwMepper.editPeopleManage(peopleManage3);
	}

	@Override
	public int editPeopleManage2(PeopleManage peopleManage4) {
		return allwMepper.editPeopleManage2(peopleManage4);
	}

	
	@Override
	public void editDstate(String did) {
		allwMepper.editDstate(did);
	}

	@Override
	public String editPstate(String pid) {
		return allwMepper.editPstate(pid);
	}

	@Override
	public void editSstate(String sid) {
		allwMepper.editSstate(sid);
	}

	@Override
	public void closeWork(Work work) {
		allwMepper.closeWork(work);
	}

	@Override
	public String selectClazz(String did) {
		return allwMepper.selectClazz(did);
	}

	@Override
	public void stopWork(Work work) {
		allwMepper.stopWork(work);
	}

	@Override
	public void stopWork2(Work work) {
		allwMepper.stopWork2(work);
	}

}
